Make minmax indices be integers. Fixes #87