StackItem.cs is ported, but untested. Other files have small changes.