deprecate conversion of Array{T1} to Ptr{T2} if T1 != T2 && T2 != None

Fixes #6073.