Update what javascript returns in case the result is an array. Related to 731
Refactor some code
Use inheritance
Keep __index in __proto__
Merge branch 'michel_731_internals_jsdriver' into next
Merge branch 'next' into sam_libcxx