Tools.structure:  repeated/square construct now cast to original DMatrix
Concerning #761 ,  #399  output() -> getOutput(), input() -> getInput()