fix wrong test: collection.model must be a function
Merge test suite hotfix
inline model definition for collections
add missing test file in test-amd
Work on references, add .dispose() method

- references are now tracking collection updates
- references must explicitely be freed w/ .dispose()
- .dispose() added on models to uniformize the api