Bugfix: arrays returned as objects like {"0":... }

Tests added https://github.com/schmittjoh/serializer/pull/304