fix currency formatter not formatting with a custom format
closes #366