Allow creating a dataset with a custom recordsize

ticket: #1598