Added support for matrix indexing, comparison operators, and array vars.