Replaying evolutionary transitions from the dental fossil record.