Refs #10686. fix warnings in Mantid and tests