Restored Java 5 compatibility through avoiding Collections.newSetFromMap

Issue: SPR-11313
Fixed getTypeDifferenceWeight algorithm in ReflectionHelper, and deprecated ArgsMatchKind enum (for removal in 4.0)

Issue: SPR-11306
Polishing