Fix where clauses with pattern guards in function definitions (closes #293).