Handling of single object vs. 1-element array of object

Here we go: https://discourse.julialang.org/t/how-to-dispatch-this-serializer-function/65981