Possible bug in PHP Predicates::at('document.type'