Cache fixes

Various minor fixes to the versioning code:

* Lots of missing @modifiers decorators.
* Make the decorators documentation-preserving.
* Trivial typos.