Porting ast debug utilities from Numba.