[PATCH 4/6] dwrite: Add a helper to collect gsub/gpos lookups.