Better serializer errors for nested writes. Closes #2202
Minor tweaks
Merge pull request #2215 from tomchristie/tomchristie-better-serializer-errors

Better serializer errors for nested writes.