fixed lib module cloneObj for array cloning