function shiftEnumsToTop(jsfbt: TableJSFBT): {|
  shiftedJsfbt: $ReadOnly<TableJSFBTTree>,
  enumCount: number,
|}
Used by fbt-runtime babel plugin to build a table of enums to hashes of leaf
tables. See FbtShiftEnumsTest for example input and output.