object and array clone functions in utils.coffee