fix bs3 directive to properly support passing functions to get itemvalue and itemtext