Fixed implementation of FunctionalList for C#

The C# implementation was not working