Optimize creation of boxed primitives
start revision 0231
Merge pull request #2826 from federicobond/primitive-optimization

Optimize creation of boxed primitives