Removed enum-referencing Doxygen workarounds.

In 1.8.5 it is now possible to reference directly to enum member.
Hooray! Also added explicit @ref here and there, fixing some referencing
bugs along the way.
Removed Doxygen workarounds for forward declarations.
Removed annoying Doxygen workaround for #undef.