A good strategy for dealing with puzzling errors like these is to perform a diff between the last version that didn't have the errors and the first version that had the errors. Diffs allow the you to concentrate on just the changes that broke your code.