Fix compilation using d2007
Fix DelphiXE compilation
Add ability to serialize/deserialize array of objects