A Survey of Bugs in AI-Generated Code