AGP-418: refactor load contexts for typoscript, to prevent parse errors