Added repeat (n) times { action } method.

The method is in StandardPrelude.
Also added a test for this method.