support empty types
error back in with isdefined condition
Merge pull request #116 from ggggggggg/pull-request/e1d47ed9

jld support for empty types