Changed expression error checking to ensure that grouping tokens are nested properly