Fix in serialization of arrays, no POJOs objects and recursive serialization. Fixes #4