Fix #56

Collections with one element are rendered as an array with one element instead of an object.
Note: it looks like the Json Serializer ignores empty arrays so collections with no elements are still not included in the _embbedded resource.
Tests for #56
Merge pull request #59 from danbarua/master

Fix for #56