Combining different data layers possible?

Another quick question:

If I create a resource which doesn’t have a datalayer, as an example to do some computations which are nicer to express using the resource syntax, are these garbage collected?