Improved loading of pdoTools in snippets