Fixed objectExtend bug.

objectExtend now does a deep copy.