Convert ACL class to FFI and update its tests, as well as add related functions and constants.