Minor refactor of constant
Added :eq() compiled support