improve C_GetObjectSize