compiler: relocate ID encoding utilities to gofrontend