Added getType function with edits to array2table