Fixes to PHPEmitter and related things to get SchemaSchemaDemo writing PHP classes.