Separated typedef reading
Removed name strdup since ctf_type has no more name property
Replaced return magic number with CTF_OK
Added forgotten semicolon
Macro to define get property action for the public API