Error on malformed variable functions

Throw an Error if we finishing parsing the value but have not found a
closing parenthesis for the variable function. The value must be
malformed.