fix parsing of `(module type of ...)`