Enabled JSON writing of IDictionary and Numbers.