small fix in cython
fixed Value::hasExpression function