Refactored some of the meta_type tools to provide more flexible validation error reporting.