fix crash on memoizing partial

functools.partial objects don't have __module__ or __name__

this is arguably a problem with functools, but accomodate it
anyway.
Is that a docstring?  There are no docstrings in unittests.
Prefer 3-arg getattr() to catching AttributeError.
Changelog for PR #21.