Fix type error when SimpleDelegator is used as an attribute.