Handle byteas in composite foreign keys