modify Model::setDiff to use model methods instead of doc methods and better expose Model::setArrayDiff