fix global schema node type validation
fix warnings
detect duplicate map keys