make tuple translation configurable

one can choose whether tuples are translated to js objects or arrays
depending on how it is used.
This can be interesting when using js libraries that encode tuples as
arrays
Merge pull request #15 from gnieh/tuple-translation

make tuple translation configurable