Alias top-level refs
Instead of doing a no-op when the schema is a top-level ref, generate a validator and type which just alias the referenced validator and type. This fits better with existing tooling which expects a type and validator to be generated.