Small change in type comparison
Bugfix in parser creation from peg description

Rules that consists of just a crossref to another rules were resolving
as a terminal rule down the chain. This fix will make a new rule as
a clone of the last rule down the chain but under a original rule name.
Fixing peg_peg example

Reworked peg_peg example to align with the previous changes.