fix: transform expressions inside labeled statements during server compilation (#18617)