IMPROVED: properly deal with preloaded reference inputs in add_process so we do no longer need the ugly hack in the expand_node part