change row representations from objects to arrays, add rewriting of column references from names to indices