fixed handling of callbacks classes when the formal type is an interface