fix parseExp parsing arrays

Fixes problem when `{myFunc 1 [2, 3, 4]}` becomes `<?= myFunc(1array(2, 3, 4)) ?>`.
Should use $term to terminate parsing or current expression before or after array.