Can you share access to your plugin? If you add me as a collaborator, I’d be happy to give it a check.
I use this type of operation quite regularly to pass around full blown objects with functions or whatever else info I need to share between functions