JAL-1712 fixes/tests for Castor binding and 'show flanking regions'