fixed bugs in MiruHybridActivityIndex marshalling  and added tests.