[Runtime] Fixed Generic Scan functions for negative counts and scanning from the back to the front.
[Runtime] Fixed Generic Scan functions for negative counts and scanning from the back to the front.

X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic