Decref reference to type object

A decref is needed if the type is not subclassed when an instance
is deallocated

Change-Id: I2c64d7cb5b726c5bf108c1cbc5283cf315a5f8e9
Reviewed-by: John Cummings <jcummings2@users.sf.net>