Added the CTObjectCopy function and variants for all CT base types.
Fixed a memory leak issue with CTObject.
Changed a few functions to inline and a few functions that still used strcmp instead of hases.