printf: add indexed argument support