Making conversions work with type-class materializers.

Fixes #33 #19

Review by @gzm0 @hubertp
I guess a more reasonable error message would be appropriate here.