Misc. fixes from my local:

Fix read-past-end in advanced inventory when using pagedown.
Fix iterator misuse in edit_fld().
Change wrong documentation in field.h.
Add comment from local.