Extend comparison test to index maps.