Added locals and tests
Refactored a bit the collection method
Added a lot more test coverage
Merge pull request #5 from TheNaoX/feature/allow_locals_on_collections

Added locals and tests