Allow a parameter to be serialized into a primitive

refs #197