If I store a Refinery module with minerals in the bins, do they stay there?

I ended up just going ahead and doing it which answered the question - yes, you lose the partial minerals (and you get a warning about it):

Store dialog for a refinery, warning that the unprocessed minerals will be lost.