Use a special update method for updating GC references in inline caches

Problem here was that using assign() also resets the hit counters,
leading to wrong heuristics on whether a method is called often or not.
In certain cases this could lead to hot methods not being inlined.