Add support for const and enum; and rename CppObject to CppClass.
Improve support for compression.
Simplify the api and CppClass.ptr usage.