fix node order for sequence/EOF nodes
Merge pull request #243 from satta/node_order

fix node order for sequence/EOF nodes