Checking that region parameters only appear at head of RPL + some minor bug fixes