Fix JLD dump (and define length while at it)
Merge pull request #63 from carlobaldassi/jldlengthfix

Fix JLD dump by defining length