Changed to specify decimals use with attribute

Decimals are now specified using use-decimal attribute. Fixed handling
of range values as an error was raised when using array values without
setting range to true.