Truly unique craft ids, as suggested by @redv

Harder than it looks, due to having to stay compatible with old savegames