[FOLD] remove index
use LedgerIndex where appropriate
make rpc input case-insensitive