Solve warning on some gcc versions
Adjust test to handle printf("%f", float_array).
TypeSpec::is_floatbased() specifically excludes arrays.