add automatical conversion of empty strings to NULL's for enums, fixes #28