Add fieldoffsets(DataType)

In order to efficiently map immutables to compound types in HDF5, it would be useful to know the layout of immutables in memory, but as far as I can tell, this isn't readily available to Julia. This PR adds a `fieldoffsets` function that returns the array of field offsets.