Fixed serialization of Dictionary reference values