Use method names in java class linkCall callGuards as well

This also adds a test for java instance and java class method calls to
JavaLinkStrategyTest to verify the callGuards do the right thing when
multiple methods have the same parameter signature.