Python: fixed counters in stat_log_counter. Core: Added const to input parameter in dnet_server_convert_dnet_addr