Added idref to Observable and fixed to_dict export when id is None