changes to IdenticalConstraint and SD.set / test so that copying items across contexts can be made part of production rules