Implement d% die
Fix iterator scope
Add tests for die rolls