fastparser: avoid excessive alloc/frees for int / bool / double parsing

Change-Id: I596bbc723558f04588d9e767d64732164524e57a