Value: better sync w/ 2.6.5 changes

* fix bugs and fill in a few missing type handlers
* doc any other missing type handlers
* fix inconsistencies with original implementation