Template update UI return 'cpus' and 'memory' as numbers

This patch corrects the data returned by UI when updating a
template. Cpus and memory values have been returned and written
in database as string.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>