Allowed differentiable dicts
Added dict type and efficient differentiation of indexing