The Explode method only requires a single argument - the VLA-Object to be exploded:
Explode Method
Explodes the compound object into subentities.
Object
3DPolyline , BlockRef, ExternalReference, LightweightPolyline, MInsertBlock, Polygonmesh, Polyline, Region
The objects this method applies to.
Return Value
Variant (array of objects)
The array of exploded objects.
i.e.
(vla-Explode <VLA-Object>)
Which returns an array of the exploded objects.
The correct code would hence be:
(repeat (setq n (sslength ss))
(setq ent (ssname ss (setq n (1- n))))
(vla-explode (vlax-ename->vla-object ent))
)
Note however, that this will only explode those objects listed, which doesn't include any forms of Leader.