Ichthyosaur
"Its headfirst birth posture... strongly indicates a terrestrial origin of viviparity, in contrast to the traditional view. The tail-first birth posture in derived ichthyopterygians, convergent with the conditions in whales and sea cows, therefore is a secondary feature". They comment "obligate marine amniotes appear to have evolved almost exclusively from viviparous land ancestors".