get rid of keyCompareByName
fix and add memcasecmp

now also check case correctly with escaping
(on the unescaped mem region)
validated should be true in test