* improved caching for pointer arithmetics * Add test for pointer arithmetics caching * Refactor test