getopts: handle array