Better primitive handling in velocity template