ok
If a lithium pack or cell is damaged by outside fires from something else, or penetration / crushing or brought together someway to cause a short....the resulting chemical reaction will take place in a few minutes. Long before it reaches the ramp.
In the case of LiFepo4 type, it will be a little smoke, no fire.
Lithium batteries do not ignite by themselves.
UPS pilot lost steering control before plane crash - Transport - ArabianBusiness.com
Even IF the shipment was labeled as hazardous, that would not have changed anything. The plane caught fire for other reasons. the batteries just added to it. Since the pilots had no time even for an emergency landing, that says it was an explosion, and, batteries dont explode. Also, the type lithium battery was not cleary indicated, just a big wide brush saying ALL lithium batteries are now suspect.
That should answer all your Q's.