Fix a bug in the type checking code where it would not produce an error if you assigned "true" or "false" to an object property.