We all understand that it can be difficult to boil a problem down
to a tractable, self-contained example. But the alternative you've
chosen -- presenting baffling examples without necessary context,
describing your debugging attempts in vague terms without concrete
details, and inventing deeply bogus theories instead of consulting
the documentation first -- is making it difficult for us to help.
On the contrary, your help has been most effective. I wouldn't know
how to expand the context without expanding it 'all the way out' and
that's more context than you want, trust me. And sorry about the
deeply bogus theories, I know they're deeply bogus but I'm a pattern
seeking animal and I'll attempt to model what I think is going on
knowing full well that I'm usually wrong.