preferred over java.lang.Double when coming from a Java Object and both Double & Float have constructors that take a String - only the DataType toString doesn't return the correct value for the test. (See Christine's comment).
as input argumnet - it used to be handled as any other JS object, but there are now new rules for arrays, invalidating portions of these tests.