chore($rootScope): cleanup for-loop

Cleanup the digest for-loop
refactor($rootScope): make the node groups generic

Migrate the watchers to a generic node group
refactor($rootScope): migrate listeners to a linked list

Migrate listeners to a linked list
chore($rootScope): fix comment location

Fix comment location