fixed error in StateGibbs and StateMetropolis where state values were not updated correctly