Test-Case + Fix of HHH-9369 (@Formula of enum type results in ClassCastException)