Made Primitive.state private.

Fixes #1206.