Move R.foldr.idx alias after the definition