fix undefined behaviour in rule extract (thanks Barry)
Merge branch 'master' of github.com:moses-smt/mosesdecoder into weight-new