You found the rules in spawning.xml. It does what is in there using respawndelay, time, entitygroup, tags and notags.
If it is not working as you expect, then it could be a bug, but I cannot dig through the code right now.
Today we actually discussed sandbox options to override maxcount and...