semantic: Correctly copy enum declaration base types.