Added reset method to scoped_registration.