store mapping type in the struct.

right now we could figure this out by looking what list it's on, but
actually storing it is simpler.