additional profile-guided optimizations

 * improve performance when no anchors are used
 * faster sorting of AnchoredToken for faster dup checking
 * copy more globals to locals