Change expansion of the 'rules' macros

Allow multiple macro for a category. Fix #31.