bug fixes. moved entity reference to id instead of type. replication works. Fixed number of entity limits not being accounted for on initial vivarium creation.