Fix const bug with enums too
Another order change
Add compilation for enums
Add comments to compiler