New inference: remove redundant type variables from bounds before binding
Summary: I'm restoring an earlier optimization that was removed by
D14007472 - see comments in code. Where possible we should avoid redundant type variables appearing in unions in tvenv, which add clutter and possible performance degradation. (No tests, but it's possible to see the difference with `hh_show_env()`.)
Reviewed By: kmeht
Differential Revision:
D14279014
fbshipit-source-id:
74e4ca5e1ecd2322c0fdbc85dc0ed35520a9791a