Add default constraints for widgets
Support null values in enum templates