Fix attribute delegate providers type mismatch mechanism. (Issue #707)