Fix JLD dump by defining length

Before this fix, I was getting the following from `dump(f)` where `f ` is a JLD file:

```
ERROR: no method length(JldFile)
```

I'm not sure this is the right fix, but it seems to work.