Fixed constructor assertion in parser/formatter factories