Scientists have unearthed the 231-year-old fossil of a species that is an ancient forerunner of most modern reptiles.