Probably a copy&paste error. [Relationship].object(types: [String] asks for r.subject instead of r.object.
Probably a copy&paste error.
[Relationship].object(types: [String] asks for r.subject instead of r.object.