core: ensure resource ids passed to the ACL are integers. This makes ACL modules simpler.