Use a copy of delims in the parser.

I don't know what madness overcame me when I thought it was a good idea to
mutate the compiler's delims during parsing and then restore them.
Added details on thread-safety.