Add custom object properties to clone function.
Merge pull request #890 from rykerwilliams/upstream

Add custom object properties to clone function.