Tamim Iqbal hit 95 as Bangladesh reached 228-5 on a rain-shortened opening day of the second Test against New Zealand in Dhaka.