Bytea backend text decoder

Hi Francisco,

This takes @Rungee's bytea hex format text decoder optimization to the next level and makes it operate directly on the byte[].

I also optimized the old escape format decoder just in case anyone still cares :)

Also a couple bug fixes (one mine, one Rungee's).  All tests pass again.

-Glen