[functions.expression]
* updated exceptions
* fixed wrong dimension check