Fix https://github.com/konsoletyper/teavm/issues/34
Fix https://github.com/konsoletyper/teavm/issues/33
Fix https://github.com/konsoletyper/teavm/issues/32
Fix https://github.com/konsoletyper/teavm/issues/30