Feature/toParam where

Add support for toParam with nested queries as parameters in a where clause.  This relies on the previous feature of having a UNION block and nested queries in from and join blocks.