Equipment for loosening or ejecting castings from dies