Adds ref memory tracker to easily find out memory leak for instance of Ref or its subclasses