Fix 1342

Handle out-of-order rows past a mention of the last row.
Fix a key leak when using factor()
Merge branch 'master' of github.com:0xdata/h2o