Fixes #1012

It was not possible to access an attribute of a key in a PredicateBuilder.