Optimize `_.invoke` for arrays.