Fix for incorrect prototype placeholders replace in nested collections
Merge pull request #952 from molchanoviv/master

Fix for incorrect replace of prototype placeholders in nested collections