only convert Array{T} to Ptr{T} or Ptr{Void} (fix #6073)