Nested case class conversion with nice error messages.

Fixes #58
Review by @gzm0 @hubertp

Less code for a trivial thing and it looks nicer to me.