Resetting the template objects before the export or import and reverting back at the end to ensure the property filtering does it's job correctly and the script doesn't suffer from some other script changing the templateObject