Popular Australian cartoonist Michael Leunig has attracted criticism for his views on vaccination.