If count of an object in when: is 0, then it should return an object of the same type.

The bug occurs if you pass in an empty dictionary and get an empty array back.