Serialization cleanup: use enum for nType arg.

It was almost faster to make it an enum than to make sure the value did what I guessed it did...
In C++ you can leave out the `enum` when using the type, so just use `SerializeType`.
Interesting observation though, that we never use this bitfield as bitfield.