Add inverse_of for more associations involved in cart processing
Fixes #5488