Revert "added getter of SerializerConfig (needed in ObjectSerializer constructor)"

This reverts commit 989eb888fee3b1550258490312f4dacaa50a733d.