fix bug refining overloaded method of generic class 
spotted by Stephane Galles