Former Southern CM Shan Wijayalal granted bail