Fixes #1479 Add generate_numeric_field function
Fixes an error with warning types