ML API bugfix. Thanks to Martin Neuhaeusser for reporting this one!

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
ML API fix for datatype construction (Issue #121). Thanks to Elarnon for reporting this one!

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
ML API bugfix (Issue #119). Thanks to user Elarnon for reporting this!

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>