Added the wrap and unwrap functions, which provide methods to convert
local variables to properties and vice-versa.