Serialize constants in case constructs as literals for Hibernate

Fixes #185