Lots of stuff

- More logging
- Bugfix with GetUInt32Element
- More reliable reuse checking