Fix returning integer values from overriden Java methods (#73)

This commit gets returning integer values created in JavaScript
working in overridden Java methods. A similar fix will probably need
to be made for float/doubles.