First working implementation of darray with generics
darray: store type instead of pointer to type.
darray: implement access via pseudotemplates