Correct mergeCodeTables code to carry on prefixing when one side of the tree runs out.

The new identity test acts as a sort of high-level acceptance tests.