Dettached MantidMatrixFunction from MantidMatrix.

Removed some deletes. Re #7117