ENH: add validation for format spec strings
ENH: allow checking for dict format strings