Removed some unused stuff from ScmWriteContext

This is to prepare for larger rewrite of the writer.