Better performances when lexing a big text.

Avoid copying text (even if PHP applies the COW principle
—copy-on-write—), and manipulate references to token namespaces.