Internal metadata in cart items + smart matching for items.
Product ID in cart items internal metadata + alias support.

The alias support is implemented in products, but not in market.

The product ID in the cart items is useful for plugins that hook the checkout.
Optimize select_items for the most common use case: key exists.
Stock plugin for hack42.