Add support to set and get enum properties.