Add decoder specs for Bytea.
Refactured code to find the right decoder function.