Bilinear relational structure fixes reversal curse and enables consistent model editing