Reapply scopes in rebind loop.
Number ids in foreach binding.
Number names in foreach binding.