Fix SharedVar.value property.

reported by Drew Duncan

fix gh-1474
Merge pull request #1475 from nouiz/fix_property_value

Fix SharedVar.value property.