collect newty const/destrs and remove them from source (it was creating id funs as consts/destrs before)