Add ^long hint to rank-of

Also replace the incorrect ^IAVLNode hint on rank with ^long.