Fix issue 12157 - Variant opEquals always returns false for classes and interfaces.
Remove code duplication in Variant fptr for compare selector.
Added workaround for bug 12164.

Style: Fix lack of space after if.
Merge pull request #1963 from Kapps/fix12157

Fix issue 12157 - Variant opEquals always returns false for classes.