Handle redeclarations of methods fully.

Both name and number/types of parameters must match for it to be
a redeclaration.