I think in these cases, map_type will be type(None).
N.B. this implies the code is missing some testing at the moment.