Adding a method providing an expected size of preds array which
is passed to predict method in generated model.
Fix of PUB-117 - generated model representing Java code now correctly
serializes +/- Infinities and NaN as Float literals.
Test for PUB-117.