Implement ReferenceSetter

Fixes #13