Bugfix: properly format numeric indexes as string keys when header count != field count, with test