Give the correct error message if when negating a variable with an empty name
Simplify '#' case for variables in template
Better negation error checking in template