Preserve Doc.prototype.constructor property
Preserve constructor property on the editor instance.

In some cases it's more convenient to access `CodeMirror`
from the instance itself, but the way prototype was defined
made it impossible.