Fix crash in Swift wrapper because of setter's value being destroyed before its content is used by native code.