Fix res_fits_path attribute in Dolphot
Generalize PhotTable metadata access for random key cases

This is because reading the table from a FITS file may have random
letter cases for the metadata keys.