Making conversions work with type-class materializers.

Fixes #33 #19

Review by @gzm0 @hubertp
Why did you move and rename the test? Please don't do this or in another commit. It's very hard to review and also to follow if we need to figure out what happened later.