Add: auto casting for simple variant type such as "type|none" or "none|type";
Fix: a minor bug in tools/daomake.