This allows updating more than one order's status, similar to how line statuses of an order can be updated. This commit is a squashed version of the changes in #1391.