Fix warnings for zeros(Ptr{T}) and ones(Ptr{T})