Add low-level types constructors and destructors. Hopefully, this won't leak memory now