[Truffle] - Initial implementation of Array#hash.

This initial implementation uses the hashCode method of the elements to
calculate the hash number. This might not be ideal because some objects
maybe have the same hashCode number. But for now, it's good enough.