"Advanced" features of the format function

This PR implements the "advanced" features of the `format` function from Postgresql:

- postition
- flag
- width