fixes #505: no-cond-assign should ignore doubly parenthesised tests

Fixes #505. On a related note, we really need to consolidate all these helpers and then DRY up the tests.