Support collections that are not Enumerable

ActiveRecord Relations are not `Enumerable`, however do respond to `#map`, so checking that the value responds to `#map` rather than being an `Enumerable` to prevent having to manually convert relations to arrays via `#to_a` before passing to Jbuilder.

Fixes a regression introduced at 74d78bf and adds tests for this explicit case.