fixing hale serializer

@mdsol/hypermedia-team Please review and merge!