Add further constrains to create_dataset

To clarify that it capped_size must be zero or a positive integer.