check_if_state_is_allowed: Check if a geographic range/state is allowed, given an areas-allowed matrix.
Description
If the user has specified a matrix stating which areas
are allowed to be connected (and thus have a species with
a range in both areas), this function checks if the input
list of areas (as a 0-based vector of areas) in a single
state/geographic range is consistent with the
areas-allowed matrix.