Fix relationship API to expose keyed properties