ticket:379 fixed Cart.add method, extended tests
Merge branch 't379_add_all_to_cart_with_existing_data_in_cart_causes_crash'
ticket:380 replace fileinput on reset form for IE