disallow setting type/value more than once