made FoLiA elements hashable if they have an ID