more work on template-based Scintilla interface