The 307-million-year-old skull, discovered in Canada, may have belonged to one of the earliest known vegetarian animals, scientists say.