fixed bug introduced with 963296feca2ef585765cd812ad5747c97bc05727

- valueSub has to be an array for Collections and object for Models
Merge pull request #280 from ClemensSchneider/toJSON_fix

Fixed bug with `valueSub` in `toJSON` introduced by 963296feca2ef585765cd812ad5747c97bc05727