Arranging panel data with correct fieldnames