Adding support for typeNames setting on output writers.

Change-Id: Id2137ec3701aa8a235273f44e25d02731cd6bc9a