[Objs] add test for detecting memory leaks on variables override
[Objs] fix memory leak - var_create should copy the property name upon demand