Revert "Fixed serialization of Dictionary reference values"

This reverts commit a4e4673df86f866ebd374ce7efe31feddf6a642e.