FunctionScore: RandomScoreFunction now accepts long, as well a strings.

closes #8267
IMO we should use `Number` and just call longValue()