Merge pull request #1 from jedestep/master

Fixed 'crate std not found' when it is not explicitly imported
store defmap in tls rather than threading it through clean
implemented jsonification for generics; enums too