Bucket type support

See also, basho/riak#362