Synchronize what can be done with mesa and allow to specify enum types instead of integers when possible.