Make changes recommended by Gesner re #7617

Corrected comments, use ManditoryValidator and use AutoPtr.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Reduce arguments and improve efficiency re #7617

as suggested by Gesner Passos

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Use AutoPtr in unit test re #7617

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Fix unit test to cope with validator on instrument name re #7617

Also use AutoPtr in unit test where appropriate.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Merge branch 'feature/7617_fullprof_to_xml' into develop