reorganise dq expr tests slightly
first tests for identifier remapping and a slight refactoring
only add rels once when seen repeatedly
don't accept relationship names as final identifier parts in remap
first cut of grep_cache feature
basic string mangling trickery for annoying default collations