schema.compiler: More tests ; optimizations ; comments ; priority fixes