Implemented Deserialization for arrays and added unit test for serialization and deserialization
Fixed issue with de serialization of custom objects array. Refactored the code a bit