Replacing Spawn Actor class deletes output connections

When you replace the class of a SpawnActor Node all output connections will just disappear and undo does not restore the connections nor the set the class.
This might be because the output variable type is always of that specfic class. Which also makes no sense to me, why is the variable type not just a Actor?
It would be nice to get at least a warning prompt before connections vanish.