I finally figured it out. It seems that the redstone lamps were glitching the place out somehow. When I filled in the holes in the roof I had the lamps turned on so nothing would spawn in there, and that caused the sunlight to not update properly in some areas. By turning off the lamps (and going into peaceful mode), reopening the holes in the ceiling and then filling them in again the lighting updated correctly. Weird glitch.