LOOM-1806: rebased, compiler and vm restart working, needs further testing on larger apps