RepeatCount() added with use in Value()
IsTerminal and some evaluation improvements