begin copying over some DataArray.jl code, mostly NA code closes