Fix compiler warnings for sequence impl