Various improvements to error reporting during config reading and resolution, some schema fixes.