Change the instance type of blocks accordingly.

Depending on certain method calls the instance type of a block should be
changed. Currently the only case where this happens is `define_method` but
others will be added in the future.