added code to pin features when passing Context from c# to c++. tests passing