Updated methods (main.query() and syn._traverseTree()) that were broken by changes to syn.query().

Fixed syn.query()'s handling of uppercase letters