misc fixes (better handle numeric data encoded as strings, such as loading from csv)
allow explicit 'null' category for enumerated types; allow manual captions for threshold ranges