Use of boost::make_shared in parser

Perform only trivial replacements