performance tweaks on FunGraph/Reify