variable's dimensions are passed to vm now
added length function, fixed multiple calls to the same function
merged to latest version