Merge pull request #97 from lbl-srg/openmodelica

Small bugfixes that were detected when running models in OpenModelica.
Fix constraint on x[size(x,1)] => x[:]
Merge pull request #98 from sjoelund/openmodelica

Fix constraint on x[size(x,1)] => x[:]
Merge pull request #99 from lbl-srg/master

Merged fix from Martin Sjoelund to OpenModelica branch