Mappings: Fix Get field mapping api with pretty flag

Use  builder.field method instead of XContentHelper#writeRawField

Closes #6552
can we only do this if pretty is on? the writeRawField is a good optimization for when the requested information is already in the right format (we can write the bytes directly without re-parsing and serializing them).