Honour JavaScript Number types when template generates random number data.

If a template generates random numbers, allow the number to come back as a JavaScript number and not a string representation of the number.