Try to ensure that lattice nodes are output in topological order
Merge github.com:moses-smt/mosesdecoder into weight-new