Some work on ResultSetExtractor.stg. refs #520