Improve error messages from embind pointer marshalling and remove TODOs in embind test code.
Comment on pointer marshalling functions.
Minor optimizations and notes in genericPointerToWireType.