Fixes #5191: Twig ignore sandbox's settings for AR attributes and relati...

...ons