Better parsing for patterns in cases (closes #11)