Fix reading/writing global entity spawn values.