This fixes a compatibility problem with Octave.
Removed parantheses when calling a MATLAB script. Octave likes to distinguish between function call and script execution.
Octave 3.6 required a different kind of type check for me. Also, it didn't access the integer value of the Java object directly, so I made that access more explicit.
Merge pull request #7 from SoerenWeber/master

Octave compatability improvements