Expose enum methods. Fixes #25