bug fix to ensure sequence segments properly handles subclass hierarchies backwards as well as forwards