Added get_spec() function so parser doesn't have to use Message._spec_lookup.