more readable error when serializing modules
include module name in error
Merge pull request #77 from JuliaLang/json-module-error

more readable error when serializing modules