Merge pull request #252 from shehzan10/devel

Bug fixes in indexing, copy and JIT
Fixed compilation fix for identity