Get case classes working again

Fixes #35