Support curies in JsonHalSerializer

So, according to the [HAL spec](http://stateless.co/hal_specification.html), `curies` is a special rel name (like `self`), and should always be an array, no matter how many links there are. This PR fixes this edge case.