Ported value type stack functions, as well as a few more VM functions.