Convert some asserts in schemac to proper error reporting

The remaining asserts will go away when schemac uses a schema schema.