JSON serializable template to will all necessary details to recreate this 
        stimulus in another session.
        
        :returns: dict

def templateDoc(self):
        """JSON serializable template to will all necessary details to recreate this 
        stimulus in another session.
        
        :returns: dict
        """
        doc = dict(self.componentDoc(False).items() + self.testDoc().items())

        # go through auto-parameter selected components and use location index
        autoparams = copy.deepcopy(self._autoParams.allData())
        for p in autoparams:
            selection = p['selection']
            serializable_selection = []
            for component in selection:
                idx = self.indexByComponent(component)
                serializable_selection.append(idx)
            p['selection'] = serializable_selection

        doc['autoparameters'] = autoparams
        doc['reorder'] = self.reorderName
        return doc