Fixed schema generation for primitives (fixes #42).