support bracket syntax for JldDataset

The majority of the code was already there, it just didn't work, so I fixed it and added some tests.