Fixes cloning of Titanium API proxy objects

JIRA ticket: https://jira.appcelerator.org/browse/TC-4741
Merge pull request #567 from FokkeZB/patch-1

Fixes cloning of Titanium API proxy objects