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.
`for (uint64_t i = (unsigned)m_stack.back(), e = (uint64_t)m_stack.back() + 32, j = 0; i < e; ++i, ++j)`?