Add namespace support to getMethods().