To implement the dye proposal will be fraught with a whole lot of constraints, e.g. the safety aspects of ensuring it will not be released in other than predetermined situations.
Not so. A few solid blocks of dye clamped to heavy parts of the airframe would present no safety issues whatsoever. They could remain in place for the life of the airframe, and only start dissolving at the bottom of the sea.