Fix crashes in IRCE caused by mismatched types