mescc: Enhance enum support.