Finished workaround for parentheses. Added a test for this case in filters.doctest (passing)