Fix for AdaptiveMetropolis propose method that caused errors in HDF5 backend