Minor Bugfixes

* include Collection's compareFunction in the state transfer
* allow fragment collection inserts with a index greater than the
collection's length
* make the model.prototype.changed property work
* allow additional external variables in the collection helper