mongoid #4824: MONGOID-4907 Add test cases for traversing arrays as hashes and hashes as arrays when embedded matching