Set the prototype after all the mutations to allow optimizations
Merge pull request #386 from arv/set-prototype

Set the prototype after all the mutations to allow optimizations