Object references tracker for AngularJS