[WIP] Type tweaks

Various changes to

- Improve consistency of the type system between libdynd and datashape
- Make ckernel creation easier with less boilerplate