Updated reflect_dom_object to be passed by value