Revise assertTypedEqual to actually compare scalars at the leaves.

Also fixed the code to properly extract the fieldName and type.  The
code from before seems like it was written as if it were a `for val
of` loop rather than the actual `for key in` loop that it was using.

Finally, when an assertion failure occurs, this version also prints
out the original (outermost) inputs prior to the recursive traversal
of the tree-structure for the input type.
Fixed bugs in tests.

Also refactored code slightly to get more informative stack traces on
failure.
Fixed bug in mapPar: the input element needs to come from the inArray,
not the result.

Added tests of outptr.  Fixed expected output in some cases (e.g. when
composing tenG with doubleG).

Refactored code to print stack traces when a test fails.