plain tex's mplibcode too is now local
begingroup/endgroup is better than bgroup/egroup
more robust btex ... etex parsing