Some code cleanup
Drop inheritance from Sequence, instead register as a sequence that way no extra dict is required