Checks the dimensions and bcast in inc_subtensor