Added support for arbitrary negative array indices