Fixing stack overflow with model list as arguments

Attempting to perform a base collection set with a large (~200000+)
array results in a stack overflow as the array is expanded into
arguments for Array.prototype.push.  Switching to an array iteration to
prevent this, and added a unit test that tests the exceptionally sized
array set.
Merge pull request #482 from werkt/master

Fixing stack overflow with model list as arguments