Fixing Enumerator#peek behaviour. When the Enumerator position was already at the end and method peek is called then JRuby was throwing a NullPointerException. But the correct behaviour should be raise a StopIteration.