Spontaneous High-Order Generalization in Neural Theory-of-Mind Networks