Move dtype/ctype dict creation and function def below per-platform init code.