Ensured monomorphic calls in some places
Make Array.prototype.unique O(n) instead of O(n*n)

Through the power of maps!
Merge pull request #1023 from tschneidereit/master

Optimizations