Fix inference for dotted and starred arr types.