flatten arguments of COUNTBLANK, optimize access to range element