Added methods for retrieving all blocks of a certain type.

Hi!

I've added some methods to retrieve all blocks of a certain type. This can be handy in some cases.

Cheers,
Robin