added ability to query custom type fields by supplying a custom binding.