add SyncedVar (fixes #37)

split out from #34