Added recursive loop-detection to the spawner. This should avoid accidentally creating infinite self-references in prototype structures.