Work on TypeScript (0.9) baselib, generics oh joy! :)
Clean up