added test for multikey join and cogroup; fixed bug with indexing inputs in those cases