sandbox: Use size_t for cleaned_env array manipulation