Fix Trac #2937: deserialising assoicated type definitions