Show filename & line number for file parsing errors

For most instances of file parsing, I've also added error checking for
the validity of each parsed key. This should help track down obsolete
stuff in mods.