Isn't `getAllTypeMappings` supposed to always return an array?