Using null keys throw exceptions for buckets and objects in buckets

fixes #74