chmatch2 fix for missing values (minor). Added tests.
Minor embellishments to shallow.
Avoid more copies, added a TO DO check for later.