Added a way to recycle entities IDs