Quite, quite odd. They work fine when used within the page. Just not when imported to another page. Quite frustrating to try to work around, and then find that even the fixes don’t work when actually imported elsewhere.
Potentially some subtle bug with the proxies?
Can you share an example? I just tested and it seems to work for me:
The key is, $output is a function. With properties set on that function. So, that requires some sort of build to happen when you first access $output. Your test doesn’t have any of that, which is why it works ;p
Here’s an example of properties not working correctly on an $output function: https://perchance.org/sqfppqoq6e#edit I did try various tweaks and workarounds. Got something working within the page (can’t remember how that worked now) that didn’t work when imported. But this example doesn’t even work within the page.