Add some low level functions to get the ndobject data ptr/create an ndobject from a ptr