backend: Correctly fail when unable to translate types.