__newindex method for cons references
__newindex method for vector reference
remove unneeded gc prevention check