Update libreg to start foundation for a ref gen callback