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

closes #8267
maybe we can just make this `Number` and we try to parse the string?