Small tweaks to provide more info about generated prediction from H2O.
(cherry picked from commit 9df2e07)
Permit empty domain in transforming into enum.

toEnum call can be call on a vector which does not contains any domain
values, only NA. To preserve toEnum contract (every call returns a new
vector), we permit this situation.
(cherry picked from commit edcae54)
Fix in shared tree builder. The last tree was not saved.
(cherry picked from commit b98b9d7)
Missing FV upload.
(cherry picked from commit dfdb332)
Generates comments including column name for each model col domain.
(cherry picked from commit e3f6640)
Fix in tests for javaprediction.

- incorrect handling of header (header was not properly skipped)
- incorrect handling of NAs
- minor code polishment
(cherry picked from commit c2f1bff)
Proper handling of NaN in scoring.

Now generated code and interpreter match during handling NaN during
prediction.
(cherry picked from commit d9c7a4f)
Report proper NaN if mapping for a given enum-value is not found.
(cherry picked from commit b398619)
Minor fixes in DTree java code generator.
(cherry picked from commit b903f8f)
Adding a method providing an expected size of preds array which
is passed to predict method in generated model.
(cherry picked from commit 446325f)
Fix of PUB-117 - generated model representing Java code now correctly
serializes +/- Infinities and NaN as Float literals.
(cherry picked from commit 572db9a)
Test for PUB-117.
(cherry picked from commit ee7b1d3)
Fix prediction with binary classifier in GBM.

GBMModel did not know that a tree is composed only of one internal tree
instead of 2. Hence, GBMModel.score() function was updated.
Corresponding fix was propagated into generated model.
(cherry picked from commit 85f24a2)
New R tests + minor fixes in shared R-code.

Javapredict GBM shared code now save results from h2o in
the same way as DRF shared code.
(cherry picked from commit 2062c78)
R DRF-test for binary classifier.
(cherry picked from commit e117ff5)
On the way to fix PUB-65, PUB-66: wrong comparision in generated code.

Generated code was comparing double with float, interpreter was
comparing float with float. It led to different behaviour in a few
cases.

E.g. double d = 1.98f
 ( ( (float) d) < 1.98f ) != (d < 1.98f) )
(cherry picked from commit 2c46ba2)
Fixed the size of generated Forest.

Limit for a number of trees generated in the scope of
one forest. Since the Forest is represented by a class, then
we need to be careful not to polute constant pool of the class.
(cherry picked from commit e89623d)
Fix for prediction on large trees.

Missing conversion to float caused differences between interpreted
and generated version of trees.

Moreover, I there are now 2 GBM tests generating 5000 trees and
verifying that the generated model can be compiled.
However, there are not passing now because on a small difference
on 7th decimal digit which needs to be tracked.
(cherry picked from commit 60d66d1)
Small code renaming to have nice getter and setter terminology in
generated models.
(cherry picked from commit e136e5e)
Removed accidently commented line from generated code.

Ups. Sorry!
(cherry picked from commit e4624d9)