Added checking of duplicate param names in methoddecl