Sorry for being late at the party.
I'll close this issue. I've stopped my investigations a while ago, turns out way too complicated for me to understand it all. I've scraped the code and end up with no idea where the problem lies, even less how to fix it. I'll live with it and rant anytime it happens but I'm unable to help myself here :( .