static string GetConstString(CiExpr expr)
{
object o = ((CiConstExpr) expr).Value;
if (o is string || o is int || o is byte)
return Convert.ToString(o, CultureInfo.InvariantCulture);
throw new ResolveException("Cannot convert {0} to string", expr.Type);
}