@flalom and I recently fell into the same beginner trap of setting the fields of a struct to abstract types:
Basic struct usage questions - New to Julia - JuliaLang
Struct: access only one element from it - New to Julia - JuliaLang
The solution is to use parametric types with constructors which quickly gets complicated. Are there any metaprogramming packages that can help simplify good struct creation?