Add a test for the rightmost leaf seqinsert heuristic, fix a bug it
found