The unbounded knapsack is the same as the 0-1, except for one thing: each item type can be taken many times. In the 0-1, after taking item i you can only choose among the previous i β 1. In the unbounded one, you can keep choosing among the first i, the same one included. That is why taking it leaves state [i, c β wgt[i β 1]] instead of [i β 1, ...]: dp[i, c] = max(dp[i β 1, c], dp[i, c β wgt[i β 1]] + val[i β 1]).
In the unbounded knapsack, each state depends on the cell above and the cell to the left in the same row. That is why, with a single list, capacities are walked from smallest to largest: the opposite of the 0-1. That dp[c β w] already holds the new row's value is exactly what you want, because it means the item could already be used and can be used again.
Coin change asks for the fewest coins to make an exact amount, with each type usable many times. It is a special case of the unbounded knapsack: the items are the coins, the weights are the coin values and the capacity is the amount. But 2 things change: you want the fewest coins, not the highest value, and the amount must be exact, not just not exceeded. With coins of 1, 2 and 5, the amount 11 is made with 3: 5 + 5 + 1.
With no coins, no amount above 0 can be made: those states have no solution. For min to drop them, they are marked with infinity. But most languages have no infinite integer, and using the largest integer can overflow when adding 1. The trick: use amt + 1, because making amt never needs more than amt coins. At the end, if dp[n, amt] is still amt + 1, β1 is returned.
The 2nd version asks how many coin combinations make the amount. dp[i, a] counts the combinations with the first i types. The count is the sum of not using the coin and using it: dp[i, a] = dp[i β 1, a] + dp[i, a β coins[i β 1]]. Amount 0 has 1 combination (give nothing), so dp[i, 0] = 1. With coins of 1, 2 and 5 and amount 5 there are 4: {5}, {2, 2, 1}, {2, 1, 1, 1} and {1, 1, 1, 1, 1}.
dp[i, a] is the fewest coins, using the first i types, to make amount a. Compared to the unbounded knapsack, 2 things change: min is used instead of max, and taking a coin adds 1 (one more coin), not its value. That gives dp[i, a] = min(dp[i β 1, a], dp[i, a β coins[i β 1]] + 1). Amount 0 needs 0 coins: column dp[i, 0] is 0.