compiler: group by constants properly
compiler: use __$ctx instead of this