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...