Combine ArrayLiteralExp::toConstElem and initializeArrayLiteral implementations.
Do not heap-allocate immutable array literals.
Never emit long array literals as inline constant.

Also cleaned up rest of the code a bit.