fix axcmd and Managed
fix cmdlistMacro about func/sysvar overload.
use copy and swap idioms; and unique_ptr for HMODULE management