ir: Handle anon base typed enums better
test: Add type test for anon enum base types