allow enumerations with custom fields

see: https://www.openproject.org/work_packages/3337

if you find a better way to do this, i'd be happy :)