Add `hostname` support for `GROUP_BY` constraint

As talked in #693, it should be supported.