T-Res: fix incorrect behavior of getState(). The corresponding native function now creates a new float or int object instead of changing the existing one.
Merge pull request #13 from alessandrelli/master

T-Res: fix #11