the records method was changed at dynamoid/criteria/chain.rb#L162 which means all the results are now wrapped into an Array only if you are not using batching. This was to preserve the enumerator up the chain for the batched use case.

This test sends directly to a method that feeds records and is thus circumventing the codepath that wraps the result in an Array hence why I removed the wrapped array from the test