The methods would otherwise cache wrong enum types for specific enums.
This would result in a `ClassCastException` at the caller location,
which obviously is no fun. This broke API with `Switch#getFace` and
`FaceAttachable#getAttachedFace`.
The existing implementation was also stupid.
By: Mariell Hoversholm <proximyst@proximyst.com>