More metadata editing vm work
Fix slight api change breakage in prototype code.