Double methods on class with __getattr__

* Resolve bug doubling methods on classes with __getattr__.
* Add regression test