Nested case class conversion with nice error messages.

Fixes #58
Review by @gzm0 @hubertp

Consider assigning this to a val just above