Remove trailing zeroes from integer vectors using .trim
CC: @tscrim @trevorkarn @darijgr
Component: combinatorics
Keywords: gsoc2022 compositions integer-vector
Author: Trevor K. Karn
Branch/Commit: b537651
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34435