Fix using int32 UnknownSize instead of the real deal, and missing getunderlyingobject case.