make map type handle interfaces correctly