to_hash/to_a check in Hash[] should only be done when only one argument is given; ref #2594