Okay, now I get this. The question was quite ambigious anyway. The fact that others has confused this question with bounce blocks instead of the shatter didn't help.
Anyway, I know the reason why the brick block collects the coin when creating a bounce block but not when shattering the block: Bounce block unrestrictor's bounce blocks are literally SMW's blocks (up to running the same of the bounce block's code) but with custom graphics and a different tile changing routine. This means, they have got the same properties as most of SMW's bounce blocks including collecting coin.
In contrast are the custom bounce block patch (not the bounce block unrestrictor which you use): None of the custom bounce blocks collect coins automatically and you have to add the code manually.
The solution to your problem (your actual problem, not the one which we confused to) is to download
this modified block. I haven't tested the block whether it works but the code to collect the coin itself works (I have used a different brick block to test the code, btw).
What I have done is to
check whether the block above the brick is a coin (which includes munchers, brown block and p-switch coins). If it is, it collects it, else it won't.
Edit: Fixed some stuff.