Made templates refer to the Java 'Number' type via the apache velocity context
Correction for generation of 'for index' statement where 'from', 'to' and 'by' expressions are of the java type 'Number'