JSONAPI doesn't return id-less records, fixes #521

\+ tests and a bugfix for a typo.