Support for numbers

The previous version did not support numbers as field values. This has
now been changed.