From pdef import descriptors in the generated code, fixed #7.