Make enums case insensitive

My template couldn't be parsed otherwise

Thanks, Jason