log whole message(list) when exception occurs

and rename dump1(or dump2) to dumps
util: tune build_dict and build_list
add test
simplify css