Added more debug text to EquipmentDefinition state exceptions
Fixed an issue with equipment ids (just incrementing the id doesnt work
in higher revisions!)