Fix an issue with denormalize leaving idProperties behind.

Also adds an array to the getterPath when a hasMany relationship
is empty.