fixes #743: wrap-regex rule warns on regex used in dynamic member access

Fixes #743. I also took the liberty of cleaning up the test cases and the reported message a bit.