warn about clashing enum aliases, and also poison these aliases

This resolves RT #72696.