Attempt to fix a game breaking bug in the client (length of undefined)

- Change to automatically remove entities not found in a snapshot
- Add some sanity checks for the sprite and text components
- Refactor the base hashmap and entity hashmaps a bit
Merge branch 'hotfix/0.13.2'