Upgraded Tokenizer to recognize RegExp in Code Blocks.
Fixed bug when state.sync broke existing references.