fixed bug introduced with 963296feca2ef585765cd812ad5747c97bc05727

- valueSub has to be an array for Collections and object for Models
Merge branch 'toJSON_fix' into clemens