Enable construction of TruncIndex from id array. Upstream-commit: 413190e1590740ee4fd1886a8c250979df3076eb Component: engine