rename flag_size_check to flag_allow_nonconst_size and make it a bool