Fix a warning in runtime lib.
Minor cleanup in arg processing.
Uncomment some debug prints, fix bitrot and enable them under a debug flag.
Revert to making return code of wrapperAlloc intlike, and fix strict-aliasing issues.