BUG: Fix wrong str.format() calls in Index.summary

Fixes #3869.