Fix codefolding: multiline string and clicking on unselected cell

Codefolding for multiline strings ("""  ... """) triggers a call to `getIndent()` with `lineNum=undefined` in indent-fold.js. Use a fixed local copy for now.
Clicking the gutter on an unselected codemirror cell was handled incorrectly.