Implemented varptr and varptrwide instructions, fixed ordering bug