Add support for literal serialization #552