traits issue was causing the copy of a vartree not to work