fix stack overflow exception fired  in Collection.set with large collection (with chrome/nodejs/v8)