CRM-14181, migrate enum to varchar

- remove obsolete pseudoconstant code
- add callback for enums so that they are available by "getOptions"