Fix build for 17.0 using the solutiong proposed by @tsloughter

We use namespaced_types option to choose between dict() and dict:dict() types.