Add an arrow example, and fix an error where the arrow markers are added more than once.