npe fix
fix storing type for implement for msil

 - fix index method issue