refactor: Clean up pointer variable declarations Split compound declarations of pointer variables for improved clarity. Rename local loop boundary variables, remove their sterile const qualifiers, and reorder their declarations to improve local cohesion. This is a cherry-pick of commit 1ebf432e85b53bf111a4585b410592727dd40a5a from branch 'libpng18'.