Simplify where clause definition in grammar

Don't allow strings and functions