Make tag serialization explicit and symmetrical

This has actually added some redundant code but eliminates a potential time
bomb by removing dependency on the implicit magic of Sequel HStore serializing
non string hash values.