Make DisplayMode.== not recursive

Fixes #2339