ToString method for grammars containing regular lists fixed.