fix-indexcount: IndexCount junit tests failed because of using the sortD...

...irection to determine whether this is a reverse scan; add a new function in IndexScanPlanNode isReverseScan() to fix it.