fix vm overflow

I hope those are the last overflow bugs in the vm. The tests cause the client to crash with a segmentation fault, this PR fixes that.
Also included the performance tests from Artur.
Not really sure what's best for default switch case. Can we change to if/else/else since default case will never occur? Or maybe an exception? (If someone inserts a case after EXTCODESIZE without a break)