pdef.lang. Validate references in definitions, #237.