Add support for :multiple for #flag, #required and #optional