Don't mutate options.gutters in setGuttersForLineNumbers

Closes #1807
Closes #1808