Add typeCheck function to array.js. carmichaelJS updated

typeCheck sees if every elements of an array is of the
same type. If so, it returns true, if not, it returns
false. In the case that typeCheck returns true, typeCheck
also adds a type property to the array with the output of
typeof(a[0])

carmichael.js was also updated