use SortedDict instead of dict/defaultdict for storing parsed tags

this ensures that the order of the inlines is always the same
bump version