implemented jsonification for generics; enums too
Merge pull request #7 from jedestep/master

Visiting for enums and their variants; jsonification for generics (also used in structs)