WyJC: Various fixes to runtime

Various tests were failing because of problems int he runtime.  These
are now corrected.