Added Serialization to EntityPool.