Optimize object attribute accesses in spesh.