Fixed upstream value type / downstream reference type issue in plugin node connection introduced by f08988c9.

Fixes #657
Merge commit 'c157c20ba5c4eba37bf7fe01ee022b2ffcf81cc7' into develop