Correct state lookup in customer_details_spec
Use DISTINCT ON to make in_taxon scope return truly distinct products in PostgreSQL

Fixes #2851

Conflicts:
	core/app/models/spree/product/scopes.rb