In _dump(), two variables were being declared and assigned undefs before they
were being used.  Reposition their declarations.  Allow for possibility that
one variable would be assigned an undef.