Fixing minor issues with enum reflection.