[asdl] Add metrics command for sum types