Fixed tests
Support collections that are not Enumerable

Notably ActiveRecord Relations are not Enumerable, however due respond to #map, so checking that the value responsd to #map rather than being an Enumerable to prevent having to convert relations to arrays via #to_a before passing to Jbuilder