Fixing PEG language reference resolving and simplifying cleanpeg module.

cleanpeg module now uses semantic action defined in peg module.