Added getType method to RunsafeInventory.