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.
Merge pull request #109 from plivesey/master

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