series: add two methods, hash() and is_identical(), intended for use in associative unordered containers.