Corrected declarations for MethodHash class.