Fix parenthesization in ^x patterns