Don't screw statements that contain ].

Currently statements that contain ] (as for arrays or as part of any string) are broken. This should fix it.