allow module to export an array of rules

This makes the code match the stated behaviour.