Make data stored in VSMap reference counted again
Remove const from cache where it shouldn't be
Add VS_RESTRICT macro, fix misunderstood mess