Replaced Way, Node and Relation in RelationRef

with TYPE_NODE, WAY, RELATION

isinstance didn't work on previous ones