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.
m_stack.back() gets first casted to unsigned, then it gets casted to uint64_t. If I would only cast it to uint64_t, an overflow would still be possible. I still dont like those unsigned casts...