Fixed FormatFactory not quite throwing correct exceptions under certain circumstances.