Destroy lookups before blobs.

We were experiencing a crash on shutdown when calling `layout->gsub->get_lookup(i)`; it appeared to be a use-after-free error.

`layout->gsub` may depend on data owned by `layout->gsub_blob`, so it must be deinitialized before the blob is destroyed. (Similarly for `layout->gpos`.)