Parser now doesn't say Relation not found if it's in views

NOTE: getRelation and getRelationRef now throw exceptions when they
dont't find relations. Enclosing any calls to them in a try-catch block
is probably wise.
(I didn't feel like doing this in test.cpp, it still works just fine anyway.)