Trying to make templatedefs independent of templates, in order to use the same (Custom)ResultSetExtractor.stg for single and multiple results. refs #500