Fix for r-hat calculation on multidimensional variables

Found a bug in `forestplot` related to calculating R-hat for multidimensional variables. This seems to fix it.