Fixing number field, making it declare the attribute either as a integer or float depending on the number of decimals. #147