I've added documentation on the two monkey patches including links to the bugs, and being explicit about what this code does to apply the patches.  Fixed in f86dee246408ae481fe3ab5d5efca3ae96c564b8

I'm not adding docblocks or tests for the monkey patches since they aren't really part of this codebase.  Folks can refer to the actual code base via the links to the bugs.