improved parsing diagnostics for substrings, array subscripts and call expressions