(ipsec) cleanup unused ciphers, add null cipher for testing purposes, fix some php warnings on empty arrays (cherry picked from commit feae22dd)