ENH: Store IndexWithinLevel in metadata