Allow setting refreshable views via the object rather than ID.

Will close #162.