optimize funcrefs for 7.4