[compiler] Generate code to retrieve value of private variable

Not used in normal case (where compiler forbids it), but it is useful
for debug tool.
[compiler] Don't try to import or export opaqueType
[network] Add an overload for boost::optional<bool> in json archive

Otherwise, it returns one of null, 0, 1 instead of one of null, true,
false.