VF2, fix assumption that index maps are default constructible.

The fix moves construction of some internal data structures into the relevant initialization list. The added test case triggers the issue in the previous revisions.