Handle immutables in JLD
Properly handle non-exported types