Use a proper bucket when creating object

The `Bucket` variable must now be a `{Type, Bucket}` tuple.