Fix error in code gen for pattern matches on data constructors #148