semantic: Handle Enum in ensureResolved.