Refactor expression transform to yield transformed objects when object is not dict or Message