generate instance for the key type
use typeInstanceD helper
fix MongoDB for new primaryFields definition