Serialized layers as a dict instead of an array.