Fixes odd bug where relationships were being generated incorrectly.
Fixes odd bug where relationships were being generated incorrectly.

angelosarto/sqlalchemy-jsonapi,bladams/sqlalchemy-jsonapi,emilecaron/sqlalchemy-jsonapi,ColtonProvias/sqlalchemy-jsonapi,dpreston/sqlalchemy-jsonapi