Fix precedence parenthesis

Broken since: https://github.com/phpcr/phpcr-utils/pull/128


i think the reason for the loop is that the qom to sql2 converter adds parenthesis everywhere to simplify the logic. we make sure to have one variant in the tests that covers the maximum parenthesis and thus confirm conversion needs to an equivalent sql2 string.