decode_hash() / decode_short_hash() aliases for decode_hex_digest<foobar>()
clean up format.hpp, move functions to format.ipp
remove cast_chunk and uncast_type
remove decode_hex_digest<HashType> from public API. use decode_hash or decode_short_hash specialisations instead.