Make tuple a subclass of Sequence

Fixes #335.
Relax attribute inheritance compatibility checks

They were too inflexible for multiple inheritance with generic inheritance.