Implemented checking for method overloading that isn't caught by the
grammar.