Fix #730 Validation errors in page engine instances

We are now using a copy of the modules object, and injecting the ``refpath`` into the copy, thus resolving the issue caused during validation of the original modules object when it did contain the injected ``refpath``, now it no longer does.