fix simple_format escapes own output when sanitize is set to true
Skip test which is broken on jruby

This test is broken from quite a while & is expected to remain broken as
encoding issues are hardest to fix in JRuby. so lets skip this test for
now
Extract common code from number helpers to new delegator method.
Merge pull request #12806 from vipulnsward/extract_common_code_in_number_helper

Extract common code from number helpers to new delegator method.
Merge pull request #12816 from gaurish/skip-static-test

Skip test which is broken on jruby
log bind variables after they were type casted.

The log output used to be confusing in situation where type casting has
"unexpected" effects. For example when finding records with a `String`.

BEFORE:

irb(main):002:0> Event.find("im-no-integer")
D, [2013-11-09T11:10:28.998857 #1706] DEBUG -- :   Event Load (4.5ms)  SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1  [["id", "im-no-integer"]]

AFTER:

irb(main):002:0> Event.find("im-no-integer")
D, [2013-11-09T11:10:28.998857 #1706] DEBUG -- :   Event Load (4.5ms)  SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1  [["id", 0]]
Merge pull request #12760 from pseidemann/master

fix simple_format escapes own output when sanitize is set to true