fix 500s on case API for PactPatientCases

setattr() on a Document actually affects the document's data dict, and
then when you try to convert it to json it fails here due to the
functions being functools.partial objects instead of methods.

Simple is better than complex.