Rename "SHandleIndex" to "SHandleEntry" and clean some code.