Filter out useless zero terms produced by a transformation