Revert "uvector: use flags instead of impl_flags to keep WITH_WEIGHT flag"

This reverts commit 95ae7582cddb3e251ba3e1a2a88aff35fd6cdf9d.

Because flags is used as value length. flags can't be used for
storing flags...