infer width of memory types differently