More constification of the BN library.