core: default the source property to null and define it in file() too.