Extend closure support.

Avoid an issue in the `getAttributeData` method.
Evaluate the \pred(p) construction.