Fixed broadcast warning when ess() function used on matrix.