[WFCORE-221] Don't lose runtimeOnly data when BasicResource is cloned

Losing this data meant deployment scanner-controlled resources would get persisted after the model got cloned.