fixing hale serializer

@mdsol/hypermedia-team Please review.