fix namespaced types for pre-17 otp