allow repeat() and trepeat() to use args or array