Added SG_UNREF for preproc and preprocessed