Issue 747 lazy strings serialized

Uses the patch from #752 and also fixes #747.

It's not the prettiest solution but it seems to work.

Specifically, it handls Python 3 strings when they are lazy.