Add ability to handle nested arrays in Array.to_xml.

According to issue #37 I created pull request.