Changed serialization to support two types of dictionaries,

Core and Array - where array is a dictionary where the keys are objects. Note that this allows for reading of javascript dictionaries.