[bindings] Allow cloning opaque types when inner is NULL