first attempt at implementing %p for fmt!

pull request for #8011