Fix serialization of nested case classes.

Helps out with https://github.com/FasterXML/jackson-module-scala/issues/70