Fix SharedVar.value property.

reported by Drew Duncan

fix gh-1474