Chart\InlinePie: locale-ignorant cast for floats

This has already been fixed with 92f454c3 and got broken again with be0c5d4b.
Time for a regression test I guess.

refs #6348