Added runtime checking for reference constrainted generic parameters