Nested case class conversion with nice error messages.

Fixes #58
Review by @gzm0 @hubertp

I was in a pattern matching mood last night :) I agree.