TBR Fix bug in optional convertibility check, also minor cleanup.
TBR Fix bug in optional convertibility check, also minor cleanup.

MultiPart: 2/4
Change-Id: If344c12a477379212b6db1880ac600f283e0f30f

vanadium/go.jni,vanadium/go.jni