fix a verification bug in the DEBUG build around read-only lists
fix a verification bug in the DEBUG build around read-only lists

buybackoff/Jil,mgravell/Jil,larrynung/Jil,kevin-montrose/Jil,m0sa/Jil,NickCraver/Jil