Rename replicate to repeat and refactor it.
Rename ulonglong and longlong to ullong and llong.
Minor refactoring of args<>.