Fix snippet-in-snippet bug with multiple cursors
Add specs for the snippet-in-snippet bug