sample-model-params bug fixed

Currently the example from documentation returns
```Java
CompilerException java.lang.ClassCastException: clatrix.core.Matrix cannot be cast to java.lang.Number
```
This PR fixes the bug.