add Sim.nRootPaths variable
reimplement resource calculation (negative resources currently allowed)
tweak childPathOf() and childUnitOf() parameters
add Sim.nRootUnits variable
reimplement playerCheckNegRsc()