Add array representation for all Direction types.

Refactor to_command to format to_a into SVG path command.