reimplement Constant::ContainsRelocations as