Checking the object is not null before to increment its reference count
 Using TTObject instead of TTObjectBasePtr to not break the reference mechanism
Merge branch 'merge/api_and_api-cleanup' of https://github.com/jamoma/JamomaCore into merge/api_and_api-cleanup