fixed objectarrayserializer bug

*fixed ObjectArraySerializer wouldn't serialize correctly with null or
empty arrays.
*moved ObjectArraySerializer to its own file