create children in same directory as parent for 1D

Use these lines of code  wherever *new* children are created.
  //change to this's directory so children are in the same place
  const TString oldDir = gDirectory->GetPath();
  this->GetDirectory()->cd();
  gDirectory->cd(oldDir);

Note this is only implemented for 1D classes.