implement RhsPart.rewrite()
implement RhsPart.toString()
rewrite lists (detect list patterns)
fix NPE in TMParserCompiler; rewrite test; better RhsList.toString; fix separator in LiRewriter