Commamd reuse bug

You should not use "each" here since it leaves %$definition not reseted. Using this again will result in getting (undef, undef).
Tests for repopulate bug
Merge pull request #2 from VadimPushtaev/patch-1

Command reuse bug