Move refsArray on the object itself to avoid sharing the pointer on the prototype