refactor ShoppingCart::restore_contents to work without zc bits
remove $currencies global from Compat\ShoppingCart