Rewrite test to use NUnit for MonoDevelop compatibility.
Remove Pin and replace with pinned type support in DeclareLocal.