Fixes matrix subscript operator and other shenanigans.