made itoa to be a template to be able to parse int64s

fix for FX-115