Add tuples to the ffi remapToJs method

Added support for mapping tuples to javascript (as standard js Array)
Re-ordered type checking for optimal performance
Added tuple to support remapToJs data structures
Merge pull request #227 from trinketapp/master

Add tuple support in ffi.remapToJs