Update Object.sc

By using the same .dup method as Function, the Object:dup improves considerably in speed.
Merge pull request #921 from ixi-thor/patch-1

Class Library: Object - performance improvements for Object.dup