Add TestMultiIndex

Also fix multi-index issue uncovered in "mem" driver.