In HAL, Map empty has_one relations to null instead of {}. Add Resource#null_resource?. Improve test coverage