Don't allow single-variant enums to be dereferenced. #6246

I'm not sure if this was even intentional at this point.
wip