Update fullPath-to-DOM id cache after rename. cleanup cache handling

@RaymondLim can you review?