Fix Type::getMapping when using an aliased index