MARRAYREF: fix an incorrectly constructed MQAPPLY expression
This seems to be a very old Maxima bug (present in 5.0) that was not
in Macsyma.
The incorrect MQAPPLY expression constructed in MARRAYREF included an
AARRAY flag in its header instead of the intended ARRAY flag.
This bug affected various things, such as arrayapply, translated array
references and translated calls to subvar.
(%i1) arrayapply (f (), [1]);
(%o1) f()(1)
(%i2) foo () := 'f () [1]$
(%i3) foo ();
(%o3) 'f()[1]
(%i4) translate (foo)$
(%i5) foo ();
(%o5) 'f()(1)
No problems with the test suite or share test suite. New tests have
been added to rtest2 and rtest_translator.