Removing more unnecessary unsafe blocks throughout
Fixing some various warnings about unused imports