Output selection fixes
Two changes:
- Make sure
output_options_get_basename()
does not alter the output_options object by adding fields in our back via the parser's own mechanism for remembering sections that were accessed. - When using an output list in combination with an output selection, verify that the output list does not contain selections not present in the output selection file provided.
This does not break the behaviour when using only a selection and no list or vice-versa.