Nested case class conversion with nice error messages.

Fixes #58
Review by @gzm0 @hubertp

Again my pattern matching mood from last night. Fixing.