Improve the "list" check in @mixin flex() to accommodate box-flex properties