Add support for %l and fix %d

We love %l, and you should too!