Also, if you replace a normal lamp with an inlaid lamp, the normal lamp is not returned to the inventory.
Pippete also does not work with it. It tries to select a normal lamp instead of the inlaid lamp.
Maybe that is why replacing does not return the old lamp, since factorio thinks its the same entity type that was placed