More robust copyValue. Fixed prop extension bug.