fixed graftless imports: only creating branch points when needed