Add support for byte[] in Transformer
Make Doc2Map more consistent