model: support null data source

Allow the user to specify that the new model should not be attached
to any data source.