**Describe the bug**
MonetDB server crashes in `exp_ref`.

**To Reproduce**
```sql
SELECT ( WITH x AS ( SELECT 1 x UNION SELECT - '199419' ) SELECT 1 FROM x AS WHERE x IN ( SELECT x FROM x , ( SELECT min ( x ) OVER ( PARTITION BY x ) ) AS ) );
```

**Backtrace of the Crash**
```c
#0 0x7f77ba568caf (exp_ref+0x3f)
#1 0x7f77ba5d6324 (exp_rename+0x714)
#2 0x7f77ba5d5ff6 (exp_rename+0x3e6)
#3 0x7f77ba5d579f (rel_push_project_up_+0x138f)
#4 0x7f77ba586de7 (rel_visitor_bottomup+0x3e7)
#5 0x7f77ba586cd7 (rel_visitor_bottomup+0x2d7)
#6 0x7f77ba586c78 (rel_visitor_bottomup+0x278)
#7 0x7f77ba586cd7 (rel_visitor_bottomup+0x2d7)
#8 0x7f77ba5d0d7b (rel_push_project_up+0x3b)
#9 0x7f77ba5ad05a (rel_optimizer+0x75a)
#10 0x7f77ba50f4a7 (sql_processrelation+0xc7)
#11 0x7f77ba317edb (sql_symbol2relation+0x1bb)
#12 0x7f77ba344a82 (SQLparser+0x802)
#13 0x7f77ba343a0a (SQLengine_+0xa5a)
#14 0x7f77ba3411fe (SQLengine+0x3e)
#15 0x7f77ba8c5b2f (runScenario+0x6f)
#16 0x7f77ba8c6cfe (MSscheduleClient+0xb6e)
#17 0x7f77baa0a6c2 (doChallenge+0x132)
#18 0x7f77bb827b38 (thread_starter+0x318)
#19 0x7f77ba238609 (start_thread+0xd9)
#20 0x7f77ba15b353 (clone+0x43)
```

**Software versions**
 - MonetDB version number: v11.49.1 (Dec2023)
 - OS and version: Ubuntu 20.04
 - From docker image monetdb/monetdb:Dec2023 (or monetdb/dev-builds:default)

An example of steps to reproduce in docker container (**write the poc into /tmp/test.sql first**):
```bash
docker container rm monetdb_test -f
docker run -e MDB_DB_ADMIN_PASS=monetdb --name monetdb_test -itd monetdb/monetdb:Dec2023
docker exec monetdb_test bash -c 'echo -n -e "user=monetdb\npassword=monetdb\n" > /root/.monetdb'

sleep 10
cat /tmp/test.sql | timeout 5s docker exec -i monetdb_test mclient monetdb     # run test case

if docker exec monetdb_test bash -c "grep '[m]server5' /proc/*/cmdline -lR"; then
    echo "[INFO] Server normal."
else
    echo "[CRASH] Mserver5 process does NOT exist."
fi
```

It can also be reproduced on the docker image `monetdb/dev-builds:default`.

**Issue labeling**
bug
MonetDB server crashes in `exp_ref`
This is a GitHub Issue
repo:MonetDB
owner:MonetDB
Title : MonetDB server crashes in `exp_ref`
Issue date:

--- start body ---
**Describe the bug**
MonetDB server crashes in `exp_ref`.

**To Reproduce**
```sql
SELECT ( WITH x AS ( SELECT 1 x UNION SELECT - '199419' ) SELECT 1 FROM x AS WHERE x IN ( SELECT x FROM x , ( SELECT min ( x ) OVER ( PARTITION BY x ) ) AS ) );
```

**Backtrace of the Crash**
```c
#0 0x7f77ba568caf (exp_ref+0x3f)
#1 0x7f77ba5d6324 (exp_rename+0x714)
#2 0x7f77ba5d5ff6 (exp_rename+0x3e6)
#3 0x7f77ba5d579f (rel_push_project_up_+0x138f)
#4 0x7f77ba586de7 (rel_visitor_bottomup+0x3e7)
#5 0x7f77ba586cd7 (rel_visitor_bottomup+0x2d7)
#6 0x7f77ba586c78 (rel_visitor_bottomup+0x278)
#7 0x7f77ba586cd7 (rel_visitor_bottomup+0x2d7)
#8 0x7f77ba5d0d7b (rel_push_project_up+0x3b)
#9 0x7f77ba5ad05a (rel_optimizer+0x75a)
#10 0x7f77ba50f4a7 (sql_processrelation+0xc7)
#11 0x7f77ba317edb (sql_symbol2relation+0x1bb)
#12 0x7f77ba344a82 (SQLparser+0x802)
#13 0x7f77ba343a0a (SQLengine_+0xa5a)
#14 0x7f77ba3411fe (SQLengine+0x3e)
#15 0x7f77ba8c5b2f (runScenario+0x6f)
#16 0x7f77ba8c6cfe (MSscheduleClient+0xb6e)
#17 0x7f77baa0a6c2 (doChallenge+0x132)
#18 0x7f77bb827b38 (thread_starter+0x318)
#19 0x7f77ba238609 (start_thread+0xd9)
#20 0x7f77ba15b353 (clone+0x43)
```

**Software versions**
 - MonetDB version number: v11.49.1 (Dec2023)
 - OS and version: Ubuntu 20.04
 - From docker image monetdb/monetdb:Dec2023 (or monetdb/dev-builds:default)

An example of steps to reproduce in docker container (**write the poc into /tmp/test.sql first**):
```bash
docker container rm monetdb_test -f
docker run -e MDB_DB_ADMIN_PASS=monetdb --name monetdb_test -itd monetdb/monetdb:Dec2023
docker exec monetdb_test bash -c 'echo -n -e "user=monetdb\npassword=monetdb\n" > /root/.monetdb'

sleep 10
cat /tmp/test.sql | timeout 5s docker exec -i monetdb_test mclient monetdb     # run test case

if docker exec monetdb_test bash -c "grep '[m]server5' /proc/*/cmdline -lR"; then
    echo "[INFO] Server normal."
else
    echo "[CRASH] Mserver5 process does NOT exist."
fi
```

It can also be reproduced on the docker image `monetdb/dev-builds:default`.

**Issue labeling**
bug
--- end body ---
