Added all the supporting code necessary to copy a trace from one real type to another.