serialize tuples as arrays (fixes #38)