HDFStore unexpectedly changes data ordering for panels
```
import pandas as pd
import numpy as np


df = pd.Panel(np.arange(8).reshape((2,2,2)))
print(df.values.flags)

print('-----')

with pd.HDFStore('temp.h5', 'w') as s:
    s.put('df', df)
    new_df = s.get('df')
    print(new_df.values.flags)
```

outputs:

```
  C_CONTIGUOUS : True
  F_CONTIGUOUS : False
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
-----
  C_CONTIGUOUS : False
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
```

Relevant link:
https://github.com/pydata/pandas/blob/f2b083beaee7302eb739d3847ea5271330ff5886/pandas/io/pytables.py#l2495

GenericFixed.write_array seems to transpose the data before writing, but unsure why that is the case
