Added a more optimal shallow object clone implementation.