Fixed a bug where keyValuePairs where not being written out as separate entities when outside a dictionary definition