Debugged the expansion rule so it expands patterns continuously; added functions for trinary IDs; added another test case.
Merge branch 'master' of https://github.com/dcastl2/ispeg