Type-check when setting the resolver on bucket and object.