Hash#{to_s,inspect} based on Array#inspect