Add metatable to rule objects.