update PTYPE_* macro
use skynet_error for memory dump
update history