Fix for Issue #166

When calling flagDottedLists to insert flags, take into account any ellipsis symbols that occur earlier in the list. Otherwise not enough flags may be generated, causing problems downstream.