Compute single line width for arrays and hashes like in expression lists

The computation structure should match the emitted code structure.
Ruby AST: Simplify array emitting code a bit
Ruby AST: Simplify hash emitting code a bit
Ruby AST: Simplify expression list emitting code a bit