Fix for #1780: remember use-site variance for `is` checks
Updated test src for #1780: `is` checks with use-site variance
Test for #1780: `is` checks with use-site variance