fix lookup of "type"

WPCData mustn't have public instance fields.