fix #645 by adding the datatype of the array