Fix getMethods() for private agent classes.  Thanks Sven!