do not unwrap lists with one element when using source because unlike fields they are not wrapped in arrays
when using alias with dot notation, take only first part before .
replace fields with source
added simple test case