add domain/range maps, make vectors 1-to-1
move all objects to OBJECTS array and dynamic_cast