Previously they weren't recognized by the generateSingleHeader.py script and weren't removed during stitching
This allows users to define reporters and listeners in files different from the main file. Related to #991, #986