add dict attributes to JobSpec and LayerSpec from thrift update