More tests and code cleanup related to IndexSelectivity

It fixes a bug where the command parser v1 cannot parser correctly schema rules from a 2.1 log.