Minor optimizations to fibonacci.Encoder