implemented getChildren() in PackedGrammar
made maxlen settable