Added XArray::merge().
Added recursive setting.
Inserted line endings for readability.