Fix batch reference in item handling

Items without a batch are not in a batch.
Fixed the batch element in the JSON for the order test JSON.
Do not resolve items grouped by order until the items have been resolved.
Merge pull request #63 from mattdenner/fix_batch_items_when_not_assigned

Fix batch reference in item handling