Fix a couple bugs to allow nulling a function pointer; add concept of entity ID/type and allow for safe delete of entities from the world