Update how smallparagraph and nameddivs select which elements to wrap. Find closest ancestral siblings that cover selected area, instead of finding top-level siblings. Refs #1533. Refs #1568. Refs #1567.