add arbitrary type array method. 

Also suppress warnings in the method that tries to guess the type of an array.