Fixes cloning of Titanium API proxy objects

JIRA ticket: https://jira.appcelerator.org/browse/TC-4741