better refclass copying in refitML