Allow caseOf on data instances