Fix HMC samper contract and HMC example.