Fix: API serializes JSON + tests.

The returned object, DataMapper::Collection, doesn't respond to `as_json`, it doesn't know how to serialize itself for JSON format. This comes in with [dm-serializer](https://github.com/datamapper/dm-serializer).

Also added tests.