Fix some issues around cursor generation.
Fix some issues around cursor generation.

rmosolgo/graphql-ruby,nevesenin/graphql-ruby,rmosolgo/graphql-ruby,xuorig/graphql-ruby,rmosolgo/graphql-ruby,nevesenin/graphql-ruby,nevesenin/graphql-ruby,rmosolgo/graphql-ruby,xuorig/graphql-ruby,nevesenin/graphql-ruby,xuorig/graphql-ruby