Initialize num_types to 0 to silence a clang warning.
Removed some invisible trailing whitespace.