fixed bug where you could not use toJSONWithRelationships() with just passing 1 relationship