Adding a check for exposable json attributes.

In ticket #229 you removed the ability to output the relations as Array or JSON, which is fine, however you left no way to keep them in. This pull allows the user to specify an `$exposeJsonAttributes` array on the class to include the relations in a toArray or toJson call.