Bug 1078297: Fix localized number formatting helper for jinja templates

I left them as filters because jinja does in fact have a decorator
to mark context filters. <3 Jinja2.