Added type checking of __getattr__ method signatures