changed generate_order_number method for insure that generated numbers never finish #5102
Fix broken specs from order number refactoring, and improve performance. Fixes #5102
Fix payment state in order importer. Fixes #5109

Conflicts:
	core/lib/spree/core/importer/order.rb
Use rand(10) to cover all digits 0-9. Fixes #5113