Corrected the date serialization and added tests

added two tests for array serialization
Added test for one attribute
_text fields are now dumped directly in the current node