Fix a bug where scalarrepl would discard offset if type would match.