Bugfix root object

this fixes the bug. Linked structs must always be an array, the exception is only for structs at root level, see: http://jsonapi.org/format/#document-structure-compound-documents