added necessary typesafe id copy constructor for debug version